<%@ Page Language="C#" MasterPageFile="~/MainMaster.master" AutoEventWireup="true" CodeFile="SearchResults_doctors.aspx.cs" Inherits="SearchResults_doctors" Title="Untitled Page" %>

<%@ Register Src="~/includes/EnhancedFeaturedDoc.ascx" TagName="EnhancedFeaturedDoc" TagPrefix="uc4" %>
<%@ Register Assembly="Manager" Namespace="PagingControl" TagPrefix="cc1" %>
<%@ Register Src="~/includes/PremiumFeaturedDoc.ascx" TagName="PremiumFeaturedDoc" TagPrefix="uc3" %>
<%@ Register Src="~/includes/showRate.ascx" TagName="showRate" TagPrefix="uc2" %>
<%@ Register Src="~/includes/DoctorMenu.ascx" TagName="DoctorMenu" TagPrefix="uc1" %>
<%@ MasterType VirtualPath="~/MainMaster.master" %>
<asp:Content ID="MainContent" ContentPlaceHolderID="MainTable" runat="server" Visible="true">
      <!--**Content 1 Starts Here**-->

    <div style="width: 94%; padding: 3%">
        <div style="background-color: #f4f4f4; width: 94%; padding: 3%">

            <table  border="0" cellpadding="0" cellspacing="0" style="text-align: justify; line-height: 20px;">

                   
                    <tr>
                       
                        <td  align="center">

                            <table width="514" border="0" align="center" cellpadding="0" cellspacing="0">
                                <tr>
                                    <td align="center">
                                        <uc1:DoctorMenu ID="DoctorMenu1" runat="server" />
                                    </td>
                                </tr>
                                <%if (Session["pageFromOrAction"].ToString().Equals("RateDoctors"))
                                  {%>
                                <tr>
                                    <td align="left" style="height: 38px">
                                        <span style="color: #0014a6"><strong>Helpful Hint:</strong></span> Please click
                         on the doctor you would like to rate.<br />
                                    </td>
                                </tr>
                                <%} %>
                                <tr>
                                    <td align="center"></td>
                                </tr>
                                <tr>
                                    <td align="center"  style="width: 100%;" id="td_fealinks" runat="server">
                                        <table width="100%" cellpadding="2" cellspacing="2" border="0">

                                            <tr>
                                                <td width="100%">
                                                    <uc3:PremiumFeaturedDoc ID="PremiumFeaturedDoc1" runat="server"></uc3:PremiumFeaturedDoc>
                                                </td>
                                            </tr>
                                        </table>
                                    </td>
                                </tr>
                                <tr>
                                    <td>&nbsp;</td>
                                </tr>

                                <tr>
                                    <td align="left" style="height: 13px">
                                        <uc4:EnhancedFeaturedDoc ID="EnhancedFeaturedDoc1" runat="server" />

                                    </td>
                                </tr>
                                <tr>
                                    <td>
                                        <asp:Label ID="lblMsg" runat="server"></asp:Label></td>
                                </tr>
                                <tr>
                                    <td align="left" style="height: 13px">
                                        <asp:Literal ID="litPaging" runat="server"></asp:Literal></td>
                                </tr>
                                <tr>
                                    <td align="center"  style="width: 100%; height: 141px;">
                                        <asp:GridView ID="grdSearch" runat="server" AutoGenerateColumns="False"
                                            BorderStyle="None" BorderWidth="0px" CellPadding="5" CssClass="normalgrey_12"
                                            DataKeyNames="rating" OnPageIndexChanging="grdSearch_PageIndexChanging" OnRowDataBound="grdSearch_RowDataBound"
                                            ShowFooter="True" Width="100%" OnRowCreated="grdSearch_RowCreated" GridLines="None" AllowPaging="True">
                                            <PagerSettings FirstPageText="First" LastPageText="Last" Mode="NextPrevious"
                                                NextPageText="Next" Position="TopAndBottom" PreviousPageText="Previous" />
                                            <FooterStyle HorizontalAlign="Left" />
                                            <Columns>
                                                <asp:TemplateField HeaderText="Name">
                                                    <HeaderStyle HorizontalAlign="Left" />
                                                    <ItemStyle Width="100px" VerticalAlign="Top" />
                                                    <ItemTemplate>
                                                        <%if (frompage.ToString() == "RateDoctors")
                                                          {%>
                                                        <a class="link-result" href='<%=Session["strHttp"]%>doctor/RateDoctors.aspx?id=<%# Eval("Id") %>'
                                                            title="Show Details"><b><u>
                                                                <%# Eval("docname") %></u>
                                                            </b>
                                                        </a>
                                                        <%}
                                                          else
                                                          { %>
                                                        <!-- Comented for implement new URL Formate at 17/07/08 by Ranjeet 
                                            <a class="link-result" href='<%=Session["strHttp"]%>doctor/DoctorsDetails.aspx?id=<%# Eval("Id") %>'
                                                title="Show Details"><b><u>
                                                    <%# Eval("docname") %></u>
                                                </b></a>-->

                                                        <a class="link-result" href='<%=Session["strHttp"]%>doctors/<%#lfunction.GetURLFormatById(Convert.ToInt32(Eval("Id")),"DOCTOR")%>/<%# Eval("Id") %>-<%# Eval("docname") %>.aspx'
                                                            title="Show Details"><b><u>
                                                                <%# Eval("docname") %></u>
                                                            </b></a>
                                                        <%} %>
                                                    </ItemTemplate>


                                                </asp:TemplateField>
                                                <asp:TemplateField>
                                                    <ItemStyle Width="10px" />
                                                    <ItemTemplate>
                                                    </ItemTemplate>
                                                </asp:TemplateField>
                                                <asp:TemplateField HeaderText="Address">
                                                    <HeaderStyle HorizontalAlign="Left" />
                                                    <ItemStyle Width="150px" VerticalAlign="Top" />
                                                    <ItemTemplate>
                                                        <%#Eval("address")%>
                                                    </ItemTemplate>
                                                </asp:TemplateField>
                                                <asp:TemplateField HeaderText="Specialty / Subspecialty">
                                                    <HeaderStyle HorizontalAlign="Left" />
                                                    <ItemStyle VerticalAlign="Top" />
                                                    <ItemTemplate>
                                                        <%#Eval("speciality")%>
                                                    </ItemTemplate>

                                                </asp:TemplateField>
                                                <asp:BoundField DataField="distance" HeaderText="Distance (miles)">
                                                    <ItemStyle Font-Bold="True" HorizontalAlign="Center" Wrap="False" />
                                                </asp:BoundField>
                                                <asp:BoundField DataField="rating" HeaderText="Overall Rating">
                                                    <ItemStyle Font-Bold="True" ForeColor="Blue" Wrap="False" />
                                                </asp:BoundField>


                                                <asp:TemplateField>
                                                    <HeaderStyle HorizontalAlign="Left" />
                                                    <ItemStyle VerticalAlign="Top" />
                                                    <ItemTemplate>
                                                        </td></tr><tr>
                                                        </tr>
                                                        <td colspan="6" style="background-color: White"></td>
                                                    </ItemTemplate>
                                                </asp:TemplateField>
                                            </Columns>
                                            <RowStyle HorizontalAlign="Left" />
                                            <PagerStyle BorderStyle="None" HorizontalAlign="Right" VerticalAlign="Top" />
                                            <HeaderStyle BackColor="Lavender" />
                                        </asp:GridView>
                                        <%--<cc1:paging id="cntPaging" runat="server" bindtocontrol="grdSearch" control_type="GridView"
                            orderby="fname" pagercount="10" pagesize="10" resultslocation="Bottom" showfirst="False"
                            showlast="False" storedprocedurename="TestingqueryResult"></cc1:paging>--%>
                                    </td>
                                </tr>
                                <!-- custom paging -->
                                <tr>
                                    <td>&nbsp;</td>
                                    <td>&nbsp;</td>
                                    <td>&nbsp;</td>
                                </tr>

                                <tr>
                                    <td align="right">&nbsp;</td>
                                </tr>
                                <tr>
                                    <td align="left">
                                        <asp:Literal ID="litPagingBelow" runat="server"></asp:Literal></td>
                                </tr>
                                <tr>
                                    <td></td>
                                </tr>

                                <tr>
                                    <td>
                                        <asp:Button ID="btnBackToSearch" runat="server" OnClick="btnBackToSearch_Click" Text="Back To Search" />
                                    </td>

                                </tr>

                                <tr>
                                    <td align="left"  style="width: 516px; height: 8px;">
                                        <img src="images/spacer.gif" alt="" width="8" height="8" /></td>
                                </tr>
                            </table>
                            <span style="font-size: 8pt; line-height: 14pt; font-family: Verdana">
                                <asp:Label ID="Label1" runat="server" BorderColor="#FF8000" BorderStyle="Solid" BorderWidth="1px"
                                    Text="&nbsp;&nbsp;Do not see your doctor?  <a href='mailto:missingdoc@findadoc.com'>Click here</a> to submit your doctor to Findadoc.com&nbsp;&nbsp;"></asp:Label></span></td>
                      
                    </tr>

                    
                </table>

              </div></div>
</asp:Content>
<asp:Content ID="Content1" ContentPlaceHolderID="InnerRight" runat="server" Visible="true">
    <table width="168" border="0" cellspacing="0" cellpadding="0" bgcolor="#f1f1f1" align="center" id="tbl_feat" runat="server">
        
        <tr>
           
            <td  align="center">
                <table width="97%" border="0" cellpadding="0" cellspacing="0">

                    <tr>
                        <td align="center" width="100%">
                            <asp:Label ID="lbl_FeaMsg" runat="server"></asp:Label></td>
                    </tr>
                    <tr>
                        <td align="right" style="height: 19px">
                            <asp:Label ID="lblMsgTop3" runat="server"></asp:Label></td>
                    </tr>
                    <tr>
                        <td>


                            <asp:GridView ID="StandardFeaDoc" runat="server" AutoGenerateColumns="False" ShowHeader="False"
                                Width="100%" BorderWidth="0" AllowPaging="True" PageSize="7" GridLines="None">
                                <Columns>
                                    <asp:TemplateField>
                                        <ItemStyle Width="100%" />
                                        <ItemTemplate>
                                            <%if (frompage.ToString() == "RateDoctors")
                                              {%>
                                            <a class="link-result" href='<%=Session["strHttp"]%>doctor/RateDoctors.aspx?id=<%# Eval("Id") %>'
                                                title="Show Details"><b><u><%# Eval("docname") %></u></b></a>
                                            <%}
                                              else
                                              { %>
                                            <!-- Comented for implement new URL Formate at 17/07/08 by Ranjeet 
                      <a class="link-result" href='<%=Session["strHttp"]%>doctor/DoctorsDetails.aspx?id=<%# Eval("Id") %>'
                       title="Show Details"><b><u><%# Eval("docname") %></u>
                     </b></a>-->
                                            <a class="link-result" href='<%=Session["strHttp"]%>doctors/<%#lfunction.GetURLFormatById(Convert.ToInt32(Eval("Id")),"DOCTOR")%>/<%# Eval("Id") %>-<%# Eval("docname") %>.aspx'
                                                title="Show Details"><b><u><%# Eval("docname") %></u>
                                                </b></a>
                                            <%} 
                                            %><br />
                                            <%#Eval("speciality")%>
                                        </ItemTemplate>
                                    </asp:TemplateField>
                                    <asp:TemplateField>

                                        <ItemTemplate>
                                            </td></tr><tr>
                                            </tr>
                                            <td colspan="6" style="background-color: White"></td>
                                        </ItemTemplate>
                                    </asp:TemplateField>
                                </Columns>
                                <RowStyle HorizontalAlign="Left" />
                                <PagerStyle ForeColor="#F1F1F1" />
                            </asp:GridView>

                        </td>
                    </tr>
                </table>
            </td>
         
        </tr>

        

    </table>






    <% if (tbl_feat.Visible == false)  {  %>

    <table width="168" border="0" cellspacing="0" cellpadding="0">
        <tr>
            <td>
                <asp:Image ToolTip="Why Join Find a Doc" runat="server" ID="imgfindoc" Width="168" Height="41" /></td>

        </tr>
        <tr>
            <td align="center" class="border-orange">
                <table style="width: 142px" border="0" align="center" cellpadding="0" cellspacing="0">
                    <tr>
                        <td colspan="2" align="left" >&nbsp;</td>
                    </tr>
                    <tr>
                        <td colspan="2" align="left" ><a href="#" title="Find Top Doctors"><span class="darkblue-text">Find Top Doctors</span></a><br />
                            Search and compare ratings for over 725,000 physicians.<br />
                            <br />
                            <a href="#" title="Rate Your Doctor"><span class="darkblue-text">Rate Your Doctor</span></a><br />
                            Rate past and present Doctors on Bedside Manner, Wait, Office Staff, Clinical Acumen, Patient Confidence, and Overall Impression.<br />
                            <br />
                            <a href="#"><span class="darkblue-text">Boards &amp; Blogs</span></a><br />
                            Share your experience with fellow patients.</td>
                    </tr>
                </table>
            </td>
        </tr>
        <tr>
            <td>
                <asp:Image runat="server" ID="Imgbot" Width="168" Height="17" /></td>
        </tr>
        <tr>
            <td >&nbsp;</td>
        </tr>
        <tr>
            <td></td>
            &nbsp;
        </tr>
    </table>
    <% } %>
  
</asp:Content>

